home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 September / CHIP Eylül 1998.iso / Slackwar / docs / mini / DHCPd < prev    next >
Text File  |  1997-07-06  |  5KB  |  133 lines

  1. Linux DHCPD mini-HOWTO 
  2. by Paul Makeev <mac@RoSprint.net>
  3. v1.2, 24 June 1997
  4.  
  5.  
  6. 1. Introduction
  7.  
  8.    DHCP is Dynamic Host Configuration Protocol. It is used to control
  9. vital networking parameters of hosts (running clients) with the help
  10. of server (running, suprise!, server daemon). DHCP is backward compatible
  11. with BOOTP. For more information see RFC 2131 (old RFC 1531) and other.
  12. (See Internet Resources section at the end of the document).
  13.  
  14.    This mini-HOWTO is about DHCP _SERVER_ daemon. There is DHCP _client_ daemon 
  15. for Linux, which is not described here. You can find _client_ package at:
  16.  
  17. Primary-site:   ftp.kobe-u.ac.jp /pub/PC-UNIX/Linux/network/dhcp
  18.                 32kB dhcpcd-0.65.tar.gz
  19. Alternate-site: sunsite.unc.edu /pub/Linux/system/network/daemons
  20.                 32kB dhcpcd-0.65.tar.gz
  21.  
  22. 2. DHCPD server for Linux.
  23.  
  24.    There is several DHCP servers available for U*X-like OSes, both commercial
  25. and free. I have success with Paul Vixie/ISC DHCPD. I used Beta-5.0.9, and now 
  26. use 5.0.14. These are both not Linux-specific versions, but they flawlessly 
  27. compile and work (not so flawlessly). You can get latest software at:
  28.  
  29. http://www.isc.org/dhcp/dhcp-beta.html (It is not updated yet, however)
  30.  
  31. or, the latest version for now:
  32.  
  33. ftp://ftp.isc.org/isc/dhcp/DHCPD-BETA-5.16.tar.gz 
  34.  
  35.  There is no distributions of DHCP on ftp.vix.com now. They are moved to
  36. ftp.isc.org.
  37.  
  38.  
  39. NB!!! READ CAREFULY the README file before compiling and installing. It contains
  40. Linux-specific info.
  41.  
  42. 3. Kernel configuration.
  43.  
  44.    You should have MULTICAST enabled in kernel. Of course, TCP/IP
  45. networking should be enabled also :-)
  46.  
  47. 4. Configuration.
  48.  
  49.  
  50.    ifconfig -a should say smth like:
  51.  
  52. eth0      Link encap:10Mbps Ethernet  HWaddr 00:C0:4F:D3:C4:62
  53.           inet addr:183.217.19.43  Bcast:183.217.19.255  Mask:255.255.255.0
  54.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  55.           RX packets:2875542 errors:0 dropped:0 overruns:0
  56.           TX packets:218647 errors:0 dropped:0 overruns:0
  57.           Interrupt:11 Base address:0x210 
  58.  
  59. If there is no "MULTICAST" letters, you should reconfigure your kernel to
  60. add multicast support (and reboot, of course). You don't need to do 
  61. anything else to enable multicasting.
  62.  
  63.    You should have "netstat -rn" saying:
  64.  
  65. dhcps:~$ netstat -rn
  66. Kernel routing table
  67. Destination     Gateway         Genmask         Flags Metric Ref Use    Iface
  68. 255.255.255.255 0.0.0.0         255.255.255.255 UH    0      0      101 eth0
  69.  
  70.   i.e., you should have multicast routing to your ethernet interface.
  71.  
  72. 5. Problems with multicast.
  73.  
  74.    If your "route add -host 255.255.255.255 eth0" command says smth like
  75. "255.255.255.255: Unknown host", try adding host with this address to
  76. /etc/hosts file, and issue "route add -host hostname eth0" instead. It should
  77. work. If not, get newer Networking utils and/or upgrade kernel version.
  78.  
  79. 6. DHCPD configuration.
  80.  
  81.    Read the included docs. It's too complicated to discuss here.
  82.  
  83. 7. Can i run DHCPD on machine with two or more Ethercards?
  84.  
  85. According to dhcpd mailing list, newest stable kernal, 2.0.31 could
  86. work with newest version of DHCPD (5.0.15) to support more than one
  87. interface. According to dhcp-server mailing list, Linux 2.0.31 have
  88. SO_BINDTODEVICE code, which makes it possible to distinguish raw interfaces,
  89. thus newer DHCPD could work on two interfaces in Linux. This feature,
  90. however, is _extremely BETA_. I didn't check it yet, but will do it 
  91. and place success information into next version of howto.
  92.  
  93. PLEASE! Don't ask me where to get kernel 2.0.31. It is unofficial
  94. pre-patch at the time this document was created.
  95.  
  96. 8. Dynamic DNS.
  97.  
  98. There is a proposed DNS and DHCP server integration mechanisms to
  99. enable dynamic DNS. You can read RFC 2136 and 2137. Several DHCP and
  100. DNS servers could have proprietary mechanisms to update DNS information.
  101. BIND v.8, which supports dynamic updates, is developed by ISC also,
  102. and i hope DHCPD and BIND would be integrated in short time.
  103.  
  104.      BIND v.8 URL: http://www.isc.org/bind.html.
  105.  
  106. I wrote a Python program, which automates adding host to DHCP and DNS
  107. tables. If you want more info on it, write me (mac@rosprint.net). It is
  108. not RFC-compliant, but does dirty work.
  109.    
  110.  
  111. 9. Internet Resources:
  112.  
  113. http://www.isc.org/dhcp.html
  114. ISC DHCP home page. You can get a lot of information here.
  115. This is my favorite site.
  116.  
  117. http://www.isc.org/bind.html
  118. BIND v.8 information.
  119.  
  120. http://www-leland.stanford.edu/%7Ellurch/win95netbugs/faq-c.html
  121. A comprehensive list of setting for Windows-95.
  122.  
  123. http://www.bucknell.edu/~droms/dhcp/index.html
  124. Very good FAQ on DHCP, a lot of links. By Ralph Droms.
  125.  
  126. http://web.syr.edu/~jmwobus/comfaqs/dhcp.faq.html
  127. Good general DHCP FAQ. A lot of info, lists of resources. By John Wobus.
  128.  
  129. Mailing lists:
  130. dhcp-server@fugue.com - list discussing ISC/Vixie DHCPD.
  131. dhcp-v4@bucknell.edu  - list discussing bucknell DHCPD
  132.  
  133.